<?php
switch ($strAction) {
	case 'index':	
		$arrCSS = array(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJS 	= array (	
							HOST_STATICS . 'js/offline/index.js'
		);
		break;
	case 'match':
		$arrCSS = array(
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJS 	= array (	
							HOST_STATICS . 'js/offline/index.js',
							HOST_STATICS . 'js/offline/match.js'
		);
		break;
	case 'public':
		$arrCSS = array(
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJS 	= array (	
							HOST_STATICS . 'js/offline/index.js',
							HOST_STATICS . 'js/offline/public.js'
		);
		break;
	case 'category':
		$arrCSS = array(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/init.js'
					);
		$arrJS 	= array (	
							HOST_STATICS . 'js/offline/index.js',
							HOST_STATICS . 'js/offline/category.js'
		);
		break;
	case 'mine':
		$arrCSS = array(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/init.js'
					);
		$arrJS 	= array (	
							HOST_STATICS . 'js/offline/index.js',
							HOST_STATICS . 'js/offline/mine.js'
		);
		break;
	case 'expired':
		$arrCSS = array(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/offline.css'
					);		
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/init.js'
					);
		$arrJS 	= array (	
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/offline/index.js',
							HOST_STATICS . 'js/offline/expired.js',
							HOST_STATICS . 'js/offline/rating.js'
		);
		break;
	case 'detail':
		$arrCSS = array(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/offline.css'
					);	
		$arrJS 	= array (	
							HOST_STATICS . 'js/language/offline/detail.js',
							HOST_STATICS . 'js/offline/detail.js',
							HOST_STATICS . 'js/offline/rating.js'
					);
		break;
	case 'create':
		$arrCSS = array(
							HOST_STATICS . 'css/themes/base/ui.all.css',
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/offline.css'
					);
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/init.js'
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/library/ui/ui.datepicker.js', 
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/library/autoresize.jquery.js',
							HOST_STATICS . 'js/language/offline/create.js',
							HOST_STATICS . 'js/offline/create.js'
		);
		break;
	case 'edit':
		$arrCSS = array(
							HOST_STATICS . 'css/themes/base/ui.all.css',
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/offline.css'
					);
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/init.js'
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/library/ui/ui.datepicker.js', 
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/library/autoresize.jquery.js',
							HOST_STATICS . 'js/language/offline/create.js',
							HOST_STATICS . 'js/offline/edit.js'
		);
		break;
}
if($AppUI->id > 0 && $strAction != 'expired' && FUNCTION_OFFLINE_EXPIRE) {
	$objOffline 	= new Offline();
	$intTotalExp	= 0;
	$objOffline->getAllForExpire($AppUI->id,0,OFFLINE_LIMIT,$intTotalExp);
	$this->view->intTotalExp = $intTotalExp;
}
?>